package com.rapplogic.xbee.examples.zigbee;

import fr.dgac.ivy.*;

public class DummyRoombaVideo 
{

	Ivy bus;
	
	
	DummyRoombaVideo(String adresse)
	{			
		bus=new Ivy("DumyRoombaVideo","",null);
		try
		{
			bus.start(adresse);
		}
		catch(IvyException e){
			System.out.println("Erreur "+e);
		}

		try
		{
			bus.bindMsg("^Hi$", new IvyMessageListener()
				{
					public void receive(IvyClient client,String[] args)
					{
						System.out.println("CA MARCHE!!!!");
				
					}
				}
			);
		}
		catch (IvyException ie)
		{
			System.out.println("Agent 2 can't bind my message !");
		}
	
	}
			
	public static void main(String []args){
		new DummyRoombaVideo("127.255.255.255:2010");
	}

}
